package com.heima.day2;

import java.util.ArrayList;
import java.util.Random;

public class Test3 {
    public static void main(String[] args) {
        Random r=new Random();
        int[] arr=new int[10];
        ArrayList<Integer> arrayList=new ArrayList<Integer>();
        for (int i = 0; i < arr.length; i++) {
            arr[i]=r.nextInt(100)+1;
            if (arr[i]>=30){
                arrayList.add(arr[i]);
            }
        }
        System.out.println(arrayList);
    }
}
